﻿using FX.CC.Andon.Entity.ReportManage;
using FX.CC.Andon.Service.ReportManage;
using FX.CC.Andon.Utility.Json;

namespace FX.CC.Andon.Business.ReportManage
{
    public class ModelRecBusiness
    {
        private readonly ModelRecService _dal=new ModelRecService();

        public string GetModelRecordReportList(ModelRecQcEntity qcmodel)
        {
            var total = _dal.GetModelRecordReportCount(qcmodel);
            var list = _dal.GetModelRecordReportList(qcmodel);
            return JsonHelper.Encode(total, list);
        }

        public string GetModelAvgReportList(ModelRecQcEntity qcmodel)
        {
            var total = _dal.GetModelAvgReportCount(qcmodel);
            var list = _dal.GetModelAvgReportList(qcmodel);
            return JsonHelper.Encode(total, list);
        }
    }
}
